package univ.paris.ouest.controle;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import univ.paris.ouest.command.AthentificationCommand;

@Controller
public class Home {
	
	@RequestMapping(value = "/welcomeCovoiturageForm",method = RequestMethod.GET)
	public String welcomeCovoiturage(){
		return "espaceCovoiturage";
	}
	
	@RequestMapping(value = "/welcomeBabyForm",method = RequestMethod.GET)
	public String welcomeBaby(){
		return "espaceBaby";
	}
	
	@RequestMapping(value = "/authentifierform",method = RequestMethod.GET)
	public String authentifier(Map<String,Object> model){
		model.put("authentificationCommand",new AthentificationCommand());
		return "authentification";
	}
	
	@RequestMapping(value = "/ajouterTrajetForm",method = RequestMethod.GET)
	public String ajouterTrajet(){
		return "ajouterTajet";
	}

}
